package com.lzy.product.apis.impl;

import com.lzy.product.apis.AgentProtocolImageTextServiceApi;
import com.lzy.product.dtos.agent.AgentProtocolImageTextDto;
import com.lzy.product.service.AgentProtocolImageTextService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by WIN7 on 2018/04/14.
 */
@Service
public class AgentProtocolImageTextServiceApiImpl implements AgentProtocolImageTextServiceApi {

    @Autowired
    AgentProtocolImageTextService agentProtocolImageTextService;

    @Override
    public Long insert(AgentProtocolImageTextDto dto) {
        return agentProtocolImageTextService.insert(dto);
    }

    @Override
    public Boolean update(AgentProtocolImageTextDto dto) {
        return agentProtocolImageTextService.update(dto);
    }

    @Override
    public Boolean delete(Long id) {
        return agentProtocolImageTextService.delete(id);
    }

    @Override
    public Boolean remove(Long id) {
        return agentProtocolImageTextService.remove(id);
    }

    @Override
    public AgentProtocolImageTextDto findById(Long id) {
        return agentProtocolImageTextService.findById(id);
    }

    @Override
    public List<AgentProtocolImageTextDto> query(AgentProtocolImageTextDto dto) {
        return agentProtocolImageTextService.query(dto);
    }

    @Override
    public List<AgentProtocolImageTextDto> selectByProtocolId(Long protocolId) {
        return agentProtocolImageTextService.selectByProtocolId(protocolId);
    }

    @Override
    public Boolean deleteByProtocolId(Long protocolId) {
        return agentProtocolImageTextService.deleteByProtocolId(protocolId);
    }

    @Override
    public List<AgentProtocolImageTextDto> selectByProtocolIdAndType(Long protocolId, Integer type) {
        return agentProtocolImageTextService.selectByProtocolIdAndType(protocolId, type);
    }
}
